package com.lotter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lotter.model.common.Common;
import com.lotter.model.user.HourseUserVo;
import com.lotter.model.user.UserHourseApplyVo;
import com.lotter.model.user.UserListVo;

/**
 * 
 * @author panguixiang
 *
 */
public interface UserMapper {

    public int getUserCount(@Param("utype") Integer utype);

    public Common getCommonInfo(@Param("utype") Integer utype);
    
    public Long getHourswin(@Param("utype") Integer utype); 
    
    public List<HourseUserVo> getHourseUserVo(@Param("mobile") String mobile,
    		@Param("utype") Integer utype,
    		@Param("ustatus") Integer ustatus,
    		@Param("start") int start,@Param("size") int size);
    
    public List<UserListVo> getUserListVos(@Param("mobile") String mobile,
    		@Param("utype") Integer utype,
    		@Param("ustatus") Integer ustatus,
    		@Param("start") int start,@Param("size") int size);
    
    public int getUserListVoCount(@Param("mobile") String mobile,
    		@Param("utype") Integer utype,
    		@Param("ustatus") Integer ustatus);
    
    public List<UserHourseApplyVo> getUserapplyhourse(@Param("mobile") String mobile,
    		@Param("start") int start,@Param("size") int size);
    
    public int getUserapplyhourseCount(@Param("mobile") String mobile);
    
    public void updateHourse(@Param("id") Long id,@Param("utype") int utype);
}
